package com.kingyea.app.market.user.service;

import com.kingyea.mobilepolice.user.bean.User;

import java.util.Map;

/**
 * @author
 * @version v1.0.0
 * @description User 接口
 * @date Created in 2018-02-09 17:37:33
 */
public interface UserService {

    /**
     * 通过ID查找对象
     *
     * @return
     */
    User getById(String id) throws Exception;

    /**
     * 列表
     *
     * @param user
     * @return
     */
    Object list(Map<String, Object> user) throws Exception;

    /**
     * 删除
     *
     * @return
     */
    int deleteById(User user) throws Exception;

    /**
     * 添加
     *
     * @param user
     * @return
     */
    User save(User user) throws Exception;

    /**
     * 更新
     *
     * @param user
     * @return
     */
    User update(User user) throws Exception;

    /**
     * 关联查询  找出供应商已有权限的用户和未有权限的用户
     */
    Object getListBySupplier(Map<String, Object> obj) throws Exception;
}
